%!TEX program = xelatex

\documentclass{beamer}
\usepackage{xeCJK}

%\setCJKsansfont{黑体}
\usetheme{Madrid}

\usepackage{listings}
\renewcommand\lstlistingname{代码}
\renewcommand\lstlistlistingname{代码}

\lstset{framexleftmargin=1.4em,
        xleftmargin=1.8em,
        basicstyle=\ttfamily\small,
        %frame=shadowbox, numberstyle=\tiny, breaklines=true,
        frame=single,
        numberstyle=\tiny, breaklines=true,
        keywordstyle=\color{blue!70}\bfseries,
        %commentstyle=\color{red!50!green!50!blue!50},
        rulesepcolor=\color{red!20!green!20!blue!20},
        numbers=none,fontadjust=true}
\lstdefinelanguage{shader}{morekeywords={uniform, layout, uniform, vec2, vec3, vec4, in, out, gl_Position, dot, flat, int ,float, gl_VertexID, xyz, w, x, y, z, location, version, sampler2DRect, bgr, gl_FragData, texture2DRect, gl_TexCoord,for,xy},morecomment=[l]{//}}


\title[标题]{完整标题}
\author[作者]{完整作者}
\institute[单位]{完整单位列表}
\date[日期]{完整日期}

\begin{document}

%------------------------------------------------

\begin{frame}
    \titlepage
\end{frame}

%------------------------------------------------

\begin{frame}{Outline}
    \tableofcontents
\end{frame}

%------------------------------------------------

\section{背景介绍}

\begin{frame}
\frametitle{中文}

\begin{block}{模块}
内容
	\begin{itemize}
	    \item 条目1
	\end{itemize}
\end{block}

\end{frame}

\begin{frame}[fragile]
\frametitle{代码}
\begin{lstlisting}
sdfsdf
apbs='c:/apbs1.5/bin/apbs.exe' # apbs程序
\end{lstlisting}
\end{frame}
%------------------------------------------------

\end{document}